﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using DogDemo.Common;

namespace DogDemo
{
    public class Collectable : Sprite, ICollectable
    {
        private int _itemId;
        public int ItemId
        {
            get { return _itemId; }
            set { _itemId = value; }
        }

        public Collectable(Texture2D texture, Rectangle initialFrame, Vector2 worldLocation, string itemName)
            : base(worldLocation, texture, initialFrame, Vector2.Zero)
        {
            AnimateWhenStopped = false;
            _itemName = itemName;
        }

        #region ICollectable

        private string _itemName;
        public string ItemName
        {
            get { return _itemName; }
            set { _itemName = value; }
        }


        public void DoCollected()
        {
            this.Expired = true;
        }
        #endregion
    }
}
